<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form id="teste">
            <ui:repeat value="#{AdminQuery.searchAll()}" var="lista">  
                ${lista}
            </ui:repeat>
        </h:form>    
        <h:form>    
            <h:outputText value="Cadastro de Compromissos"></h:outputText>
            <h:panelGrid>
		<h:outputLabel value="Consulta" for="query" />
		<h:inputText id="query" value="#{AdminQuery.solrQuery.query}"/>
            </h:panelGrid>
            <h:message for="message"></h:message>    
            <p:commandButton action="#{AdminQuery.cadastrar}" value="Submit" type="submit" />
            
        </h:form>
        
    </h:body>
</html>

